//声明: 该文件需要 swiper,jqueryui,common,toast,jquery

require(["js/config"],function(config){
				
	require(["jquery","sw","com","tst","he"]),function(jquery,sw,com,tst,he){
		//console.log("xxx")
		
		
		$("#search").autocomplete({
			source:function(request,response){
				$.ajax({
				url:"http://suggestion.baidu.com/su",
				dataType: "jsonp",
				data: {
						wd : request.term
					},
				jsonp: "cb",
				success: function(data) {
					response(data.s);
					}
					
					
				});
			};
			select : function(event, ui) {
				console.log(ui.item.label);
			}
		})
		console.log(autocomplete);

		new t("这是一个会自动消失的弹出框");
	}	
})